package com.edu.model;

import java.io.Serializable;

public class QuotaParams implements Serializable {

    /**
     * cpu核数，100 = 0.1核
     */
    private Integer cpu;

    /**
     * 内存
     */
    private Integer memory;

    /**
     * 函数超时时间
     */
    private Integer timeout;

    /**
     * 实例数
     */
    private Integer replicas;

    private boolean isChanged = false;

    public Integer getCpu() {
        return cpu;
    }

    public void setCpu(Integer cpu) {
        this.cpu = cpu;
    }

    public Integer getMemory() {
        return memory;
    }

    public void setMemory(Integer memory) {
        this.memory = memory;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Integer getReplicas() {
        return replicas;
    }

    public void setReplicas(Integer replicas) {
        this.replicas = replicas;
    }

    public boolean isChanged() {
        return isChanged;
    }

    public void setChanged(boolean changed) {
        isChanged = changed;
    }

    @Override
    public String toString() {
        return "QuotaParams{" +
                "cpu=" + cpu +
                ", memory=" + memory +
                ", timeout=" + timeout +
                ", replicas=" + replicas +
                '}';
    }
}
